<table width="100%" cellspacing="1" cellpadding="1">
  <tr>
    <td colspan="2">
    <fieldset>
 		<legend> <b>Вывод абитуриентов внебуджетников для учета оплативших</b>
 		</legend>
<table width="700" cellspacing="1" cellpadding="1">
  <tr>
    <td width="20%">Факультет</td>
    <td> <?php echo $form->create('Paidcontract', array('action' =>'listpaid', 'target' => '_blank')); 
	  	echo $form->input('facultet_id', array('options' => $facultets, 'empty' => 'Выберите факультет', 'label' => '', 'id' => 'facultets'), null);
	  
	  ?></td>
    <td width="20%">Специальность</td>
    <td> <?php 
				echo $form->select('profession_id', array(), null, array('id' => 'professions'));
				$profession_options = array('url' => 'update_profession','update' => 'professions');
				echo $ajax->observeField('facultets', $profession_options);
	?></td>
    </tr>

  <tr>
  	<td>&nbsp;</td>
  	<td>&nbsp;</td>
  </tr>    
  <tr>
    <td width="20%">&nbsp;</td>
    <td>&nbsp;</td>
    <td width="20%">&nbsp;</td>
    <td> <?php echo $form->end('Вывести для учета'); ?></td>
  </tr>
</table>
</fieldset>
    </td>
  </tr>
  <tr>
    <td colspan="2">
  <fieldset>
 		<legend> <b>Вывод абитуриентов внебуджетников по факультету в excel</b>
 		</legend>
<table width="700" cellspacing="1" cellpadding="1">
  <tr>
    <td width="20%">Факультет</td>
    <td> <?php echo $form->create('Paidcontract', array('action' =>'listfacultetpaid', 'target' => '_blank')); 
	  	echo $form->input('facultet_id', array('options' => $facultets, 'empty' => 'Выберите факультет', 'label' => '', 'id' => 'facultets2'), null);
	  
	  ?></td>
    <td width="20%">Специальность</td>
    <td> <?php 
				echo $form->select('profession_id', array(), null, array('id' => 'professions2'));
				$profession_options = array('url' => 'update_profession','update' => 'professions2');
				echo $ajax->observeField('facultets2', $profession_options);
	?></td>
    </tr>

  <tr>
  	<td>&nbsp;</td>
  	<td>&nbsp;</td>
  </tr>    
  <tr>
    <td width="20%">&nbsp;</td>
    <td>&nbsp;</td>
    <td width="20%">&nbsp;</td>
    <td> <?php echo $form->end('Вывести в excel'); ?></td>
  </tr>
</table>
</fieldset>  
    </td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>  
    
    
 